Skip to content

Conversation

petyaslavova
Copy link
Collaborator

Pull Request check-list

Please make sure to review and check all of these items:

  • Do tests and lints pass with this change?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Description of change

Fixes #3780

@petyaslavova petyaslavova requested a review from Copilot October 6, 2025 17:19
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes type hints for variadic arguments (*args) in core.py and JSON module commands by removing incorrect List wrapper annotations. The changes correct type annotations where *args: List[Type] was incorrectly used instead of *args: Type.

  • Corrected type hints for variadic arguments in multiple functions
  • Fixed variable naming conflicts in blmpop and lmpop methods
  • Updated JSON command type annotations to properly handle variadic arguments

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
redis/commands/json/commands.py Fixed type hints for *args parameters in arrappend and arrinsert methods
redis/commands/core.py Corrected type hints for *args parameters across multiple methods and resolved variable naming conflicts

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

*arg types in redis/commands/core.py and redis/commands/json/commands.py appear to be wrong
1 participant